<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no">
		<title>数组扩展</title>
		<script type="text/javascript">
			//方法from(),把对象转换成数组
			let arr = Array.from({
				'0':'a',
				'1':'b',
				'2':'c',
				length:3
			})
			console.log(arr[1])
			
			//如果一个对象的属性值和普通的属性值不一样，不能使用方式获取，person['name.ss']
			let person = {
				'name.ss':'tom',
				age:20
			}
			console.log(person['name.ss'])
			console.log(person.age === person['age'])
		</script>
	</head>
	<body>
		<div id="app">
			<!-- todo -->
		</div>
	</body>
</html>